package PTA;
import java.math.BigDecimal;
import java.util.Scanner;

public class Api05 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            BigDecimal a,b;
            a=sc.nextBigDecimal();
            b=sc.nextBigDecimal();
            System.out.println(a.add(b));
            System.out.println(a.multiply(b));
        }
    }
}
